package com.hzx.controller;

import com.hzx.Activity;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class TimeController {

    @GetMapping(value = "/timeNow")
    public Date activityDetailSearch() {
        Date date = new Date();
        date.setHours(date.getHours() + 8);
        return date;
    }
}
